package util.cleaner;

public class InvalidPatterns {

	/**
	 * @param args
	 */
	
	
	static String numbers = "^[0-9]+$";
	static String number_number = "^[0-9]+_[0-9]+";
	static String number_number_number= "^[0-9]+_[0-9]+_[0-9]+";
	static String number_chars= "^[0-9]+_[a-z]+";
	
	static String number_chars_chars= "^[0-9]+_[a-z]+_[a-z]+";
	static String number_chars_chars_chars= "^[0-9]+_[a-z]+_[a-z]+_[a-z]+";
	
	static String chars_numbers= "^[a-z]+_[0-9]+";
	
	static String char_char= "[a-z]_[a-z]";
	static String char_char_char= "[a-z]_[a-z]_[a-z]";
	
	
	public static boolean matchInvalidPattern(String tag){
		
		if(tag.matches(numbers)) return true;
		if(tag.matches(number_number)) return true;
		if(tag.matches(number_number_number)) return true;
		if(tag.matches(number_chars)) return true;
		if(tag.matches(chars_numbers)) return true;
		if(tag.matches(char_char)) return true;
		if(tag.matches(char_char_char)) return true;
		
		if(tag.matches(number_chars_chars)) return true;
		if(tag.matches(number_chars_chars_chars)) return true;
		
			
		return false;
		
	}
	
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub

		System.out.println("buenas1".substring(0, "buenas1".length()-1));
		System.out.println("2009_aasdfasd".matches(number_chars));
	}

}
